FindColumnByRowIndex

Returns a column index for a table cell located using the row index and property/expected value pairs. Searches the specified row to find the cell, or control in the cell, that has property values that match the expected values.

Syntax

FindColumnByRowIndex(SearchRowIndex, "PropertyName", "ExpectedValue", ...)

Note: You can enter multiple property/expected value pairs to better identify a control. Separate each property and value with a comma.

Arguments

Argument Description
SearchRowIndex Table row index number to search.
PropertyName Property name to search for.
ExpectedValue Value to search for.

Supported objects

HTMLTable

Return value

Value Description
Value Column index of the table cell.
-1 Table cell not found.

Example

ID = Cell("D")

colIndex = Window("Documents").HTMLTable("List").FindColumnByRowIndex(1, "Inner Text", ID)

Window("Documents").HTMLLink(Window("Documents").HTMLTable("List").GetControlFromTable("HTMLLink", colIndex, 2)).Click()